package com.study.mybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 明信片
 * </p>
 *
 * @author flwu
 * @since 2020-03-20
 */
@TableName("tbl_postcard")
public class Postcard implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 作者
     */
    private String author;

    /**
     * 标题
     */
    private String title;

    /**
     * 描述
     */
    private String describe;

    /**
     * 价格（金币数量）
     */
    private Long coin;

    /**
     * 发行数量
     */
    private Long publishCount;

    /**
     * 库存数量
     */
    private Long stockCount;

    /**
     * 分类ID
     */
    private Long categoryId;

    /**
     * 视频ID或图片ID
     */
    private Long resourceId;

    /**
     * 资源类型，1：视频；2：图片
     */
    private Boolean resourceType;

    /**
     * 资源地址
     */
    private String resourceUrl;

    /**
     * 封面地址
     */
    private String coverUrl;

    /**
     * 权重
     */
    private Integer weight;

    /**
     * 分类权重
     */
    private Integer categoryWeight;

    /**
     * 是否上架
     */
    private Boolean isUp;

    /**
     * 是否推荐
     */
    private Boolean isRecommend;

    /**
     * 推荐时间
     */
    private LocalDateTime recommendDatetime;

    /**
     * 是否删除
     */
    private Boolean isDelete;

    /**
     * 是否限制城市
     */
    private Boolean isLimitCity;

    /**
     * 城市
     */
    private String city;

    /**
     * 创建时间
     */
    private LocalDateTime createDatetime;

    /**
     * 最后更新时间
     */
    private LocalDateTime updateDatetime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }
    public Long getCoin() {
        return coin;
    }

    public void setCoin(Long coin) {
        this.coin = coin;
    }
    public Long getPublishCount() {
        return publishCount;
    }

    public void setPublishCount(Long publishCount) {
        this.publishCount = publishCount;
    }
    public Long getStockCount() {
        return stockCount;
    }

    public void setStockCount(Long stockCount) {
        this.stockCount = stockCount;
    }
    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }
    public Long getResourceId() {
        return resourceId;
    }

    public void setResourceId(Long resourceId) {
        this.resourceId = resourceId;
    }
    public Boolean getResourceType() {
        return resourceType;
    }

    public void setResourceType(Boolean resourceType) {
        this.resourceType = resourceType;
    }
    public String getResourceUrl() {
        return resourceUrl;
    }

    public void setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
    }
    public String getCoverUrl() {
        return coverUrl;
    }

    public void setCoverUrl(String coverUrl) {
        this.coverUrl = coverUrl;
    }
    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    public Integer getCategoryWeight() {
        return categoryWeight;
    }

    public void setCategoryWeight(Integer categoryWeight) {
        this.categoryWeight = categoryWeight;
    }
    public Boolean getUp() {
        return isUp;
    }

    public void setUp(Boolean isUp) {
        this.isUp = isUp;
    }
    public Boolean getRecommend() {
        return isRecommend;
    }

    public void setRecommend(Boolean isRecommend) {
        this.isRecommend = isRecommend;
    }
    public LocalDateTime getRecommendDatetime() {
        return recommendDatetime;
    }

    public void setRecommendDatetime(LocalDateTime recommendDatetime) {
        this.recommendDatetime = recommendDatetime;
    }
    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean isDelete) {
        this.isDelete = isDelete;
    }
    public Boolean getLimitCity() {
        return isLimitCity;
    }

    public void setLimitCity(Boolean isLimitCity) {
        this.isLimitCity = isLimitCity;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public LocalDateTime getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(LocalDateTime createDatetime) {
        this.createDatetime = createDatetime;
    }
    public LocalDateTime getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(LocalDateTime updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    @Override
    public String toString() {
        return "Postcard{" +
            "id=" + id +
            ", author=" + author +
            ", title=" + title +
            ", describe=" + describe +
            ", coin=" + coin +
            ", publishCount=" + publishCount +
            ", stockCount=" + stockCount +
            ", categoryId=" + categoryId +
            ", resourceId=" + resourceId +
            ", resourceType=" + resourceType +
            ", resourceUrl=" + resourceUrl +
            ", coverUrl=" + coverUrl +
            ", weight=" + weight +
            ", categoryWeight=" + categoryWeight +
            ", isUp=" + isUp +
            ", isRecommend=" + isRecommend +
            ", recommendDatetime=" + recommendDatetime +
            ", isDelete=" + isDelete +
            ", isLimitCity=" + isLimitCity +
            ", city=" + city +
            ", createDatetime=" + createDatetime +
            ", updateDatetime=" + updateDatetime +
        "}";
    }
}
